package com.spring.dive.a02interface;
// 3）实现类也是泛型类，可以对泛型进行扩充
public class GenericImpl3<T,E> implements GenericInterface<T>{
    private T key;
    private E value;

    public GenericImpl3(T key, E value) {
        this.key = key;
        this.value = value;
    }

    // 实现类
    public T getKey() {
        return key;
    }
    public void print(T t) {
        System.out.println("----->t:"+t);
    }
    // 补充接口
    public E getValue() {
        return value;
    }
}
